<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/29
 * Time: 16:19
 * 定时请求页面
 */
require "includes/OrderClass.php";


if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') && $_SERVER['REQUEST_METHOD'] == 'POST')
{

    $object = new OrderClass();
    $id = $_REQUEST['id'];
    $obj = $object->FindById($id);


    if ($obj->pay_status == 1){
        echo  'SUCCESS';
    }




}



?>